Clearsite\Plugins\OGImage\Plugin D

Total Complexity 264
Dependencies 4
Dependents 3
Total lines 1,345
Lines of code 987
Logical lines of code 609
Comment lines 127
Methods 40
Properties 6

Methods 40

Method Rating Maintainability Complexity Lines of code
expand_text_options()
D
29 48 107
expand_logo_options()
D
31 39 97
__construct()
D
26
30 146
field_list()
B
32 15 90
text_fallback_chain()
A
46 12 34
font_rendering_tweaks()
A
37 6 90
image_fallback_chain()
A
50 9 27
admin_bar()
A
48 7 33
download_font()
S
48 7 30
file_put_contents()
S
60 7 12
get_valid_POST_keys()
S
58 6 16
setup_defaults()
S
48 5 30
maybe_fake_support_webp()
S
55 5 20
convert_webp_to_png()
S
54 5 20
validate_text_options()
S
53 5 20
evaluate_font_weight()
S
57 5 19
font_rendering_tweaks_for()
S
60 4 13
font_filename()
S
65 4 8
hex_to_rgba()
S
59 3 13
storage()
S
60 3 12
get_font_list()
S
62 3 12
evaluate_horizontal()
S
65 3 8
overrule_og_image()
S
68 3 6
get_management_permission()
S
68 3 7
evaluate_vertical()
S
65 3 8
late_head()
S
67 3 9
rgba_to_hex()
S
59 2 13
icon()
S
62 2 10
evaluate_font_style()
S
68 2 7
get_og_image_url()
S
77 2 3
init()
S
66 2 8
getInstance()
S
70 2 7
dummy_data()
S
68 2 7
position_grid()
S
60 1 13
validate_logo_options()
S
73 1 5
default_google_fonts()
S
66 1 8
admin_bar_icon_style()
S
72 1 7
setError()
S
69 1 6
get_plugin_file()
S
78 1 3
setting()
S
78 1 3